$(function () {

    $('body').on('click','#open',function () {
        $.ajax({
            url: baseloaction + '/mobile/uc/agent/openExtension',
            data: {"shareKey": $("#shareKey").val()},
            type: 'post',
            dataType: 'json',
            success: function (result) {
                if(result.success){
                    var _ele = $("#u-open-extension").val();
                    $.alert(_ele, '温馨提示', function () {
                        window.location.href = baseloaction + "/mobile/uc/index";
                    });
                    $('.modal-in').find('.modal-button-bold').text('我知道了');
                }else {
                    $.toast(result.message);
                }
            },
            error: function (error) {
                $.toast('系统繁忙，请稍后重试');
            }
        })
    })
})